{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    <input type="hidden" name="id" value="{$data.id}">

    <div class="layui-form-item">
        <label class="layui-form-label">退款理由</label>
        <div class="layui-input-block">
            <textarea name="content" readonly="readonly" placeholder="评价"
                      class="layui-textarea">{$data.tui_reason}</textarea>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 220px !important;">退款图片</label>
        <div class="layui-input-block">
            <ul class="layui-row list-inline plupload-preview" id="p-pic">
                {foreach $data.img as $k=>$v}
                <li class="file-item thumbnail"><a href="javascript:;">
                    <img data-image=""
                         onerror="this.src='/admin/ajax/icon?suffix=png';this.onerror=null;"
                         data-original="{$v}"
                         src="{$v}">
                </a>
                </li>
                {/foreach}

            </ul>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">是否同意</label>
        <div class="layui-input-block">
            <input type="radio" name="status"  value="2"  checked  title="同意">
            <input type="radio" name="status"  value="3"   title="拒绝">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">退款接收人</label>
        <div class="layui-input-block">
            <input type="text" name="people"   value="{:config('site.tui_people')}" autocomplete="off" placeholder="退款接收人"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">退款接收人电话</label>
        <div class="layui-input-block">
            <input type="text" name="phone"   value="{:config('site.tui_phone')}" autocomplete="off" placeholder="退款接收人电话"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">退款接收地址</label>
        <div class="layui-input-block">
            <textarea name="address"  placeholder="退款接收地址"
                      class="layui-textarea">{:config('site.tui_address')}</textarea>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">拒绝理由</label>
        <div class="layui-input-block">
            <textarea name="refuse_reason"  placeholder="拒绝理由,拒绝时填写"
                      class="layui-textarea">{$data.refuse_reason}</textarea>
        </div>
    </div>


    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>

</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use('yznForm', function () {
        var yznForm = layui.yznForm;
        yznForm.bindevent($("form.layui-form"));
    });
</script>
{/block}